package com.khtec.tools.parsetool;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.swing.*;

@SpringBootApplication
public class ParsetoolApplication {

    public static void main(String[] args) {
        // 在单独的线程中启动Spring Boot应用
        new Thread(() -> SpringApplication.run(ParsetoolApplication.class, args)).start();
        
        // 确保在Swing的事件调度线程中启动桌面应用
        SwingUtilities.invokeLater(() -> ParseToolDesktopApp.createAndShowGUI());
    }

}
